package com.lijiaxing.mapper;

import com.lijiaxing.pojo.UserRes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface authMapper {
    //查询所有用户
    @Select("SELECT * FROM users LIMIT ${pageNum},${pageSize};")
    UserRes.User[] queryAdminList(int pageNum, int pageSize);

    //查询所有用户数量
    @Select("SELECT COUNT(*) FROM users;")
    int queryAdminListCount();
}
